package de.com.cn.springboot.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//App.java file
@SpringBootApplication 
public class App extends SpringBootServletInitializer {

 @Override
 protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
     return application.sources(App.class);
 }

 public static void main(String[] args) throws Exception {
     SpringApplication.run(App.class, args);
 }
}